$(function(){
    init();

    function init(){
        discountdata();
    }

    function discountdata(){
       $.get("http://193.112.55.79:9090/api/getinlanddiscount",(result)=>{

       if(result){
        let data =result.result;
        let html = template("discountTpl", { arr: data });
        $(".discount").html(html);   

       }else{
        console.log("失败", result);
       }
       })
    }
})